package com.mzj.saas.mservice.propertybill.repository;

import com.mzj.saas.mservice.propertybill.entity.EstateExpenseHouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateExpenseHouseRepository extends PagingAndSortingRepository<EstateExpenseHouse, Long>, JpaSpecificationExecutor<EstateExpenseHouse>, JpaRepository<EstateExpenseHouse,Long> {
    EstateExpenseHouse findByHouseIdAndExpenseId(String houseId,String expenseId);

    List<EstateExpenseHouse> findByExpenseId(String expenseId);

    List<EstateExpenseHouse> findByHouseId(String houseId);

}
